package com.lanxiao.cloud.modules.dept.application.dto;

import com.lanxiao.cloud.common.core.dto.TreeNodeDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author ：qiaoliang
 * @date ：2021-10-26
 */
@ApiModel("部门树形结构返回模型(用户信息更改时使用)")
public class BasicsDeptTreeDto extends TreeNodeDto<Long> {

  @ApiModelProperty(value = "名称")
  private final String name;

  public BasicsDeptTreeDto(Long id, Long parentId, String name) {
    super(id, parentId);
    this.name = name;
  }

  public String getName() {
    return name;
  }

}
